import request from '@/utils/request'
// home的api
// 获取首页头部分类
export const findHeadCategory = () => {
  return request({
    method: 'get',
    url: '/home/category/head'
  })
}
// 获取品牌数据
export const findBrand = (limit = 6) => {
  return request({
    method: 'get',
    url: '/home/brand',
    data: { limit }
  })
}
/**
 * 获取广告图
 * @returns Promise
 */
export const findBanner = () => {
  return request({
    method: 'get',
    url: '/home/banner'
  })
}
